home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000316_news@newsmaster….columbia.edu _Mon Sep 8 13:09:01 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA06962
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 8 Sep 1997 13:08:59 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA10671
  7.     for kermit.misc@watsun; Mon, 8 Sep 1997 13:08:58 -0400 (EDT)
  8. Path: news.columbia.edu!sol.ctr.columbia.edu!news.indiana.edu!vixen.cso.uiuc.edu!news-peer.sprintlink.net!news.sprintlink.net!Sprint!newsfeed.nacamar.de!oleane!calvacom!not-for-mail
  9. From: do11@calva.net (Dominique Ottello)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: It is not a bug but a suggestion for improvement of MSK315
  12. Date: Mon, 08 Sep 1997 15:19:28 GMT
  13. Organization: PCatHome&Me
  14. Lines: 49
  15. Message-ID: <3412651b.3423267@news.calvacom.fr>
  16. Reply-To: do11@calva.net
  17. NNTP-Posting-Host: par26.calvacom.fr
  18. Mime-Version: 1.0
  19. Content-Type: text/plain; charset=us-ascii
  20. Content-Transfer-Encoding: 7bit
  21. X-Newsreader: Forte Agent 1.5/32.451
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:7639
  23.  
  24. I have a suggestion for improvement of MSK315 :
  25.  
  26. There are two different variables that give result of input and minput
  27. command :
  28.  
  29.    \v(instatus)
  30.      Status of most recent INPUT or MINPUT command:
  31.       -1 for not initialized yet
  32.        0 for success
  33.        1 for timed out
  34.        2 for user level Control-C interrupt
  35.        4 for connection lost
  36.  
  37.    \v(minput)
  38.      Shows which search pattern was matched by the MINPUT command, which
  39.      is a script INPUT command with one or more match patterns.  The 
  40.      variable is 0 if no match was obtained.
  41.  
  42. If \v(instatus) is more than 0 it is failure
  43. if \v(minput) is more than 0 it is success
  44.  
  45. It is not coherent.
  46.  
  47. I suggest that \v(minput) not only gives the matched pattern but also gives
  48. the status of the command :
  49.  -4 Connection Lost
  50.  -3 User Level Control-C interrupt
  51.  -2 Timed Out
  52.  -1 Not initialized yet
  53.   0 No match
  54.   1 ..... XX number of matched pattern
  55.  
  56. With this, only one switch structure is sufficient to test all cases :
  57.  
  58. Switch \v(minput) {
  59.  :-4,management of connection lost,break
  60.  :-3,management of User Interrupt,break
  61.  :-2,management of Timeout,break
  62.  :-1,management of not initialized,break
  63.  :0,management of no match,break
  64.  :1,management of match 1,break
  65.  :2.........
  66.  }
  67.  
  68. Comments please.
  69.  
  70. Best regards,
  71.  
  72. == Dominique Ottello == do11@calva.net == Paris == France ==